home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / reader_requests / xgtool / xgtoolset / source / xgdrum / toolstart.c < prev    next >
C/C++ Source or Header  |  2000-02-23  |  524b  |  27 lines

  1. #include "bars.h"
  2.  
  3. long IntuitionBase;
  4. long GfxBase;
  5. long LayersBase;
  6. long DOSBase;
  7. long SysBase;
  8. long stdout;
  9. struct Functions *functions;
  10.  
  11. struct ToolMaster *start(f)
  12.  
  13. struct Functions *f;
  14.  
  15. {
  16.     functions = f;
  17.     if (f->version < 3) return(0);    /* Make sure this is B&P Pro! */
  18.     SysBase = functions->SysBase;
  19.     DOSBase = functions->DOSBase;
  20.     IntuitionBase = functions->IntuitionBase;
  21.     GfxBase = functions->GfxBase;
  22.     LayersBase = functions->LayersBase;
  23.     return((struct ToolMaster *)inittoolmaster());
  24. }
  25.  
  26.  
  27.